<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .demo {
            position: absolute;
            width: 100px;
            height: 100px;
            background: orange;
        }
    </style>
</head>
<body>
    <button id='stopBtn'>stop</button>
    <button id='finishBtn'>finish</button>
    <button id='startBtn'>start</button>
    <div class="demo"></div>

    <script src='./jquery.js'></script>  
    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js
    '></script>


    <script>
        // target duration easing callback
        // 
        // $('#startBtn').on('click', function () {
        //     // 内置队列
        //     $('.demo')
        //         .animate({width: '+=50', height: '+=50', left: '+=100', top: '+=100'}, 1000, 'easeInOutBounce')
        //             .delay(2000)
        //                 .animate({width: '+=50', height: '+=50', left: '+=100', top: '-=200'}, 1000, 'easeInElastic')
                
        // });

        // $('#stopBtn').on('click', function () {
        //     // null  true   true true
        //     $('.demo').stop(true, true);
        // });

        // $('#finishBtn').on('click', function () {
        //     $('.demo').finish();
        // });





    </script>  
</body>
</html>